package com.wsm.common.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wsm.common.annotation.RedisCache;
import com.wsm.common.utils.SnowFlake;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

import com.wsm.common.mapper.ModelMapper;
import com.wsm.common.domain.ModelDO;
import com.wsm.common.service.ModelService;

/**
 * 系统模板
 *
 * @author wangshimin
 * @email wangshiminhome@foxmail.com
 * @date 2020-02-20 10:21:26
 * @description : 系统模板
 */
@Service
public class ModelServiceImpl extends ServiceImpl<ModelMapper,ModelDO> implements ModelService {
	@Autowired
	private ModelMapper modelMapper;

	@Override
	public List<ModelDO> list(Map<String, Object> map) {
		return modelMapper.list(map);
	}

	@Override
	public int count(Map<String, Object> map) {
		return modelMapper.count(map);
	}

	@Override
	public int removeOrDel(Long id) {
	return modelMapper.removeOrDel(id);
}

	@Override
	public int batchRemoveOrDel(Long[] ids) {
		return modelMapper.batchRemoveOrDel(ids);
	}

	@Override
	public int addOrDel(Long id) {
		return modelMapper.addOrDel(id);
	}

	@Override
	public int batchAddOrDel(Long[] ids) {
		return modelMapper.batchAddOrDel(ids);
	}

	@Override
	public int removeUseFlag(Long id) {
		return modelMapper.removeUseFlag(id);
	}

	@Override
	public int addUseFlag(Long id) {
		return modelMapper.addUseFlag(id);
	}
}
